{template game_header}

<style type="text/css">
td{text-align:center;}
</style>

<h4 style="padding-left:10px;;">
    <span>POI列表</span>
</h4>
<form class="form-horizontal" method="post" action="?c=adminGame&a=poiList">
    <div class="control-group search-group" style="margin:0;">
        <label class="control-label" >POI：</label>
        <div class="controls">
          <input type="text" placeholder="poi" name="poi" value="{$search['poi']}">
        </div>
    </div>
    <div class="control-group search-group" style="margin:0;">
        <label class="control-label" >城市：</label>
        <div class="controls">
          <input type="text" placeholder="城市名称" name="city" value="{$search['city']}">
        </div>
    </div>
    <div class="control-group search-group" style="margin:0;">
        <label class="control-label" >怪物类型：</label>
        <select name="boss_type">
            <option value="0">选择</option>
            <option {if $search['boss_type'] == 1} selected="selected" {/if} value="1">小怪</option>
            <option {if $search['boss_type'] == 2} selected="selected" {/if} value="2">中怪</option>
            <option {if $search['boss_type'] == 3} selected="selected" {/if} value="3">大怪</option>
        </select>
    </div>
    <div class="control-group search-group" style="margin:0;">
        <div class="controls">
            <input type="hidden" value="search" name="s">
            <button class="btn" type="submit">搜索</button>
        </div>
    </div>
</form>

<div class="bs-docs-example table-align pt-15" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>POI</th>
                <th>城市</th>
                <th>地址信息</th>
                <th>怪物类型</th>
                <th>累计攻击人数</th>
                <th>查看</th>
            </tr>
        </thead>
        <tbody>
            {if !$list}  
                <tr>
                    <td colspan="6">暂无记录</td>              
                </tr>
            {else}

            {loop $list $k $v}
            <tr>
                <td>{$v['poi']}</td>
                <td>{$v['city']}</td>
                <td>{$v['address']}</td>
                <td>{$v['typeName']}</td>
                <td>{$v['userCount']}</td>
                <td>
                    <a class="btn btn-edit" target="_blank" href="?c=adminGame&a=poiDetail&poi=$v['poi']&type=$v['boss_type']">详情</a>
                </td>
            </tr>
            {/loop}

            {/if}
        </tbody>
    </table>
</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}
